<h1>Listing bonds</h1>

<table class="bond_list">
  <tr>
    <th>Number</th>
    <th>Nominal</th>
    <th>Image url</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

  <% @bonds.each do |bond| %>
      <tr class="<%= cycle('list_line_odd', 'list_line_even') %>">

        <td class='list_description'>
            <%= bond.number %></td>
            <td class='list_description'><%= bond.nominal %></dd>
        </td>

        <td class="list_actions"><%= image_tag(bond.image_url, :class => 'list_image') %></td>

        <td><%= link_to 'Show', bond %>
          <br/>
          <%= link_to 'Edit', edit_bond_path(bond) %>
          <br/>
          <%= link_to 'Destroy', bond, confirm: 'Are you sure?', method: :delete %></td>
      </tr>
  <% end %>
</table>

<br/>

<%= link_to 'New Bond', new_bond_path %>
